import BaseController from "../framework/controller";

class Controller extends BaseController {

    constructor(optionKey) {
        super();
        this.optionKey = optionKey;
    }

    setSearchYear(key, subKey, type) {
        this.setSearch(key, this.vm.$store.state.getDefaultYear(this.optionKey + "." + subKey), type);
    }

    setSearchMonth(key, subKey, type) {
        this.setSearch(key, this.vm.$store.state.getDefaultMonth(this.optionKey + "." + subKey), type);
    }

}

export default Controller;